package com.whc.gulimall.authserver.feign;

import com.whc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 远程调用-发送验证码功能
 *
 * @author angaoen
 */
@FeignClient("gulimall-third-party")
public interface SmsFeign {

    /**
     * 发送短信
     *
     * @param phoneNumber 手机号码

     */
    @GetMapping("/sms/sendCode")
    R sendMsg(@RequestParam("phoneNumber") String phoneNumber);

}
